import { Component, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-widget-panel',
  templateUrl: './widget-panel.component.html',
  styleUrls: ['./widget-panel.component.css']
})
export class WidgetPanelComponent {

  @Input() btnDisabled = true;
  @Input() btnActive = true;
  @Input() hasFooter = true;

  @Output() activeEvent = new EventEmitter();
  @Output() disabledEvent = new EventEmitter();

  constructor() { }


  activeHandle(): void {
    this.activeEvent.emit();
  }

  disabledHandle(): void {
    this.disabledEvent.emit();
  }

}
